package br.com.futibamanager.exception;

/**
 * General exception for the application.
 * 
 * @author diogenes.feijo
 *
 */
public class FutibaManagerException extends RuntimeException {

	private static final long serialVersionUID = 5188537000766983645L;
	
	private String messageKey;
	
	private String[] messageParameters;
	
	/**
	 * Constructor.
	 * 
	 * @param messageKey - the message key
	 */
	public FutibaManagerException(String messageKey) {
		
		this.messageKey = messageKey;
	}
	
	/**
	 * Constructor.
	 * 
	 * @param messageKey - the message key
	 * @param messageParameters - the message parameters
	 */
	public FutibaManagerException(String messageKey, String... messageParameters) {
		
		this.messageKey = messageKey;
		this.messageParameters = messageParameters;
	}

	/**
	 * Gets the message key.
	 * 
	 * @return String
	 */
	public String getMessageKey() {
		return messageKey;
	}

	/**
	 * Sets the message key.
	 * 
	 * @param messageKey - the message key
	 */
	public void setMessageKey(String messageKey) {
		this.messageKey = messageKey;
	}

	/**
	 * Gets the message parameters.
	 * 
	 * @return String[]
	 */
	public String[] getMessageParameters() {
		return messageParameters;
	}

	/**
	 * Sets the message parameters.
	 * 
	 * @param messageParameters - the message parameters
	 */
	public void setMessageParameters(String... messageParameters) {
		this.messageParameters = messageParameters;
	}

}
